/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is Mozilla Communicator client code, released
 * March 31, 1998.
 *
 * The Initial Developer of the Original Code is
 * Netscape Communications Corporation.
 * Portions created by the Initial Developer are Copyright (C) 1998-1999
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Anders Conbere <aconbere@bytecave.net>
 *   DonGato <dongato@gmx.net>
 *
 * Alternatively, the contents of this file may be used under the terms of
 * either the GNU General Public License Version 2 or later (the "GPL"), or
 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 * in which case the provisions of the GPL or the LGPL are applicable instead
 * of those above. If you wish to allow use of your version of this file only
 * under the terms of either the GPL or the LGPL, and not to allow others to
 * use your version of this file under the terms of the MPL, indicate your
 * decision by deleting the provisions above and replace them with the notice
 * and other provisions required by the GPL or the LGPL. If you do not delete
 * the provisions above, a recipient may use your version of this file under
 * the terms of any one of the MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

/* ===== global.css =====================================================
  == Styles that apply everywhere.
  ======================================================================= */

/* all localizable skin settings shall live here */
@import url("chrome://global/locale/intl.css");

@import url("chrome://global/skin/formatting.css");
@import url("chrome://xpi_skins/skin/xpi_skins.css");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* ::::: XBL bindings ::::: */

checkbox {
  -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing");
}

radio {
  -moz-binding: url("chrome://global/skin/globalBindings.xml#radio");
}

menulist > menupopup,
.menulist-menupopup {
  -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
}

.menulist-compact {
  -moz-binding: url("chrome://global/content/bindings/menulist.xml#menulist-compact");
}

progressmeter[mode="undetermined"] {
  background: url("chrome://global/skin/icons/progressmeter-busy.gif") repeat-x 0% 50%;
}

/* ::::: root elements ::::: */

window,
page,
dialog,
wizard,
prefwindow {
  background-color: #EEE;
  color: #000;
  font: message-box;
}

window.dialog {
  padding: 8px 10px 10px 8px;
}

[wait-cursor] {
  cursor: wait !important;
}

/* ::::: alert icons :::::*/

.message-icon,
.alert-icon,
.error-icon,
.question-icon {
  width: 32px;
  height: 32px;
}

.message-icon {
  list-style-image: url("chrome://global/skin/icons/message.png");
}

.alert-icon {
  list-style-image: url("chrome://global/skin/icons/warning.png");
}

.error-icon {
  list-style-image: url("chrome://global/skin/icons/error.png");
}

.question-icon {
  list-style-image: url("chrome://global/skin/icons/question.png");
}

/* ::::: iframe ::::: */

iframe {
  border: none;
  width: 100px;
  height: 100px;
  min-width: 10px;
  min-height: 10px;
}

/* ::::: statusbar ::::: */

statusbar {
  background-color: #EEE;
  border-top: 1px solid #666 !important;
  /* was no padding*/
  padding: 2px 4px 2px 0px;
  min-height: 22px;
}

statusbarpanel {
  -moz-box-align: center;
  -moz-box-pack: center;
  padding: 0px 4px;
}

.statusbar-resizerpanel {
  -moz-box-align: end;
  -moz-box-pack: end;
  -moz-appearance: none;
  padding: 0px;
  border: none;
}

.statusbarpanel-iconic, .statusbarpanel-iconic-text, .statusbarpanel-menu-iconic {
  padding: 0px 1px 0px 1px;
}

resizer {
  -moz-appearance: none;
  background: transparent url("chrome://global/skin/icons/resizer.gif") no-repeat bottom right !important;
  width: 16px;
  height: 16px;
  cursor: se-resize;
}

/* XXXBlake yeah, shoot me -- these don't belong here.  I'll move them later. */

sidebarheader {
  background-color: #DDD;
  color: #000;
  border-bottom: 1px solid #666;
  min-height: 27px;
}

sidebarheader > label {
  -moz-padding-start: 4px;
}

sidebarheader > .tabs-closebutton {
  margin-top: 0px;
  outline: none;
}

sidebarheader > .tabs-closebutton:active {
  outline: none;
}

/* ::::: miscellaneous ::::: */

.toolbar-focustarget {
  -moz-user-focus: ignore !important;
}

/* :::::: autoscroll popup ::::: */

#autoscroller {
  height: 28px;
  width: 28px;
  border: none;
  margin: -14px;
  padding: 0px;
  background-image: url("chrome://global/skin/icons/autoscroll.png");
  background-color: transparent;
  background-position: right top;
  -moz-appearance: none;
}

#autoscroller[scrolldir="NS"] {
  background-position: right center;
}

#autoscroller[scrolldir="EW"] {
  background-position: right bottom;
}

/* ::::: fix for privacy issues with passwords dialogs ::::: */

#rejectsTree + separator, #signonsTree + separator {
  display: none !important;
}

#rejectsTree, #signonsTree {
  margin-bottom: 4px !important;
}

/* fix for firefox about box wrong size of user agent box */

#userAgent {
  height: 50px !important;
}

/* fix for multiple messed separators */

#crlviewer > .thin,
#myCerts > .thin,
#othersCerts > .thin,
#webCerts > .thin,
#CACerts > .thin,
#selectBookmarkDialog > .thin {
  display: none;
}

/* fix missing borders at set home page from bookmark */

#bookmarks-view {
  border: 1px solid #666;
}

#dataSources {
  -moz-appearance: none !important;
  -moz-border-radius: 4px;
  border: 1px solid #666;
  background-color: #FFF;
}
